package com.jiangyao.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 简历
 * </p>
 *
 * @author zhoushuangxiang
 * @since 2020-08-12
 */
@Data
@ApiModel(value = "常见简历参数")
public class ResumeDTO implements BaseDTO {

    /**
     * 1-成员简历 2-简历快照
     */
    @ApiModelProperty(value = "1-成员简历 2-简历快照", required = true)
    @NotNull(message = "成员名称不能为空", groups = {Add.class})
    @NotEmpty(message = "成员名称不能为空", groups = {Add.class})
    private String resumeType;

    /**
     * 成员ID
     */
    @ApiModelProperty(value = "成员ID")

    private String userId;

    /**
     * 成员电话
     */
    @ApiModelProperty(value = "成员电话", required = true)
    @NotNull(message = "成员电话不能为空", groups = {Add.class})
    @NotEmpty(message = "成员电话不能为空", groups = {Add.class})
    private String userPhone;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "成员名称", required = true)
    @NotNull(message = "成员名称不能为空", groups = {Add.class})
    @NotEmpty(message = "成员名称不能为空", groups = {Add.class})
    private String name;

    /**
     * 出生日期
     */
    @ApiModelProperty(value = "出生日期", required = true)
    @NotNull(message = "出生日期不能为空", groups = {Add.class})
    private Date birthday;

    /**
     * 学历 0未知 1高中 2大专 3本科 4硕士 5博士
     */
    @ApiModelProperty(value = "学历 0未知 1高中 2大专 3本科 4硕士 5博士", required = true)
    @NotNull(message = "学历不能为空", groups = {Add.class})
    @NotEmpty(message = "学历不能为空", groups = {Add.class})
    private String education;

    /**
     * 毕业学校
     */
    @ApiModelProperty(value = "毕业学校名称不能为空", required = true)
    @NotNull(message = "毕业学校名称不能为空", groups = {Add.class})
    @NotEmpty(message = "毕业学校名称不能为空", groups = {Add.class})
    private String school;

    /**
     * 技能证书
     */
    @ApiModelProperty(value = "技能证书不能为空", required = true)
    @NotNull(message = "技能证书名称不能为空", groups = {Add.class})
    @NotEmpty(message = "技能证书名称不能为空", groups = {Add.class})
    private String certificate;

    /**
     * 兴趣特长
     */
    @ApiModelProperty(value="兴趣特长不能为空", required = true)
    @NotNull(message = "兴趣特长不能为空", groups = {Add.class})
    @NotEmpty(message = "兴趣特长不能为空", groups = {Add.class})
    private String interest;

    /**
     * 总结
     */
    @ApiModelProperty(value = "总结名称不能为空", required = true)
    @NotNull(message = "总结名称不能为空", groups = {Add.class})
    @NotEmpty(message = "总结名称不能为空", groups = {Add.class})
    private String summarize;

    /**
     * 生成时间
     */
    private Date createTime;


}
